#include<iostream>
using namespace std;
int arr[5] = { 1,2,3,4,5 };
int brr[5] = { 1,2,3,7,5 };
int crr[9];
//61642
int main()
{
	for (int i = 0; i < 6; i++)
	{
		crr[i] = (arr[i] + brr[i]) % 10;
		if (arr[i] + brr[i] >= 10)
		{
			crr[i + 1]++;
		}
	}
	for (int i = 5; i >= 0; i--) {
		cout << crr[i];
	}
	return 0;
}